package Demo1;

import Demo1.Animal;

public class Bird extends Animal {
    public Bird(String name, int age) {
        super(name, age);
    }
    public void fly(){
        System.out.println(this.name+"is flying");
    }
    public void eat(){
        System.out.println(this.name+"is eating bird food");
    }
}
